/**
 * Copyright 2011, Under-Ground Studio.
 *  
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *  
 *      http://www.apache.org/licenses/LICENSE-2.0
 *  
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cn.edu.zju.vlis.aus.chart;

import android.graphics.Canvas;
import android.graphics.RectF;

/**
 * Data Item for pie chart.
 * @author ymsong (songyuming1985@gmail.com)
 * 2011-9-12
 */
public class PieChartDataItem extends ChartDataItem {
	public float angleStart;
	public float angleEnd;
	public float percentage;
	public boolean selected;
	
	public PieChartDataItem() {
	}
	
	public PieChartDataItem(String id, String label, float number, int color) {
		super(id, label, number, color);
	}

	public PieChartDataItem(ChartDataItem item) {
		super(item.getId(), item.getLabel(), item.getNumber(), item.getColor());
	}

	/**
	 * Draw details pop rectangle.
	 * @param canvas
	 * @param clientArea
	 */
	public void drawDetail(Canvas canvas, RectF clientArea) {

	}
}
